package my.special.superchu;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;

public class AndroidFirstTestActivity extends Activity {

	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {

		super.onCreate(savedInstanceState);

		// Verbindet acitivty mit content von layout-Main /res/layout/main.xml
		setContentView(R.layout.main);
		((Button) findViewById(R.id.Button09))
				.setOnClickListener(new OnClickListener() {

					public void onClick(View v) {
						Intent i = new Intent(AndroidFirstTestActivity.this,
								MediaPlayerActivity.class);
						startActivity(i);

					}
				});
	}

	public void myClickHandlerMedia(View view) {
		switch (view.getId()) {
		case R.id.ButtonMedia:
			Intent i = new Intent(AndroidFirstTestActivity.this,
					MediaPlayerActivity.class);
			startActivity(i);
			break;
		}
	}

	public void myClickHandlerSpielerei(View view) {
		switch (view.getId()) {
		case R.id.Button09:
			Intent i = new Intent(AndroidFirstTestActivity.this,
					Spielereiactivity.class);
			startActivity(i);
			break;
		}
	}

	public void myClickHandlerAnmelden(View view) {
		switch (view.getId()) {
		case R.id.buttonAnmelden:
			Intent i = new Intent(AndroidFirstTestActivity.this,
					AnmeldenActivity.class);
			i.putExtra("Anmeldename", "David");
			i.putExtra("Passwort", "hehehehe");
			startActivity(i);
		}

	}
}
